package com.binance.assetservice.data.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.binance.assetservice.data.models.PortfolioItem;
import com.binance.master.old.config.OldDB;

@OldDB
public interface PortfolioItemMapper {

    public List<PortfolioItem> getPortfolios(@Param("userId") String userId);

    public int deletePortfolio(@Param("userId") String userId, @Param("symbols") List<String> symbols);

    int addPortfolio(PortfolioItem item);

    int updateProtfolio(PortfolioItem item);

    public Long getFollowNum(@Param("symbol") String symbol);

    public Integer getLastSequence(@Param("userId") String userId);
}
